package com.xmy.api.feign;

import com.xmy.entity.Result;
import com.xmy.pojo.ShopPay;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Component
@FeignClient("dubbo-pay-provider")
public interface IPayFeignService {

    @PostMapping("/pay/create")
    Result createPayment(@RequestBody ShopPay shopPay);

    @PostMapping("/pay/callback")
    Result callbackPayment(@RequestBody ShopPay shopPay);
}
